{{include file="default/Public/header.html"}}
<form method="post" action="{{U url='fproductcolor/edit?dosubmit=1'}}">
<div id="pageTop">
<div class="tabs">
<ul>
	<li><a href='{{U url="fproductcolor/manage?cid=`$data.0.cid`"}}' class="selected">返回</a></li>
</ul>
</div>
</div>
<div id="pageCo">
<div class="manageForm">
<table cellpadding="0" cellspacing="0" class="tabcontent" id="tabsContent{{$id}}" {{if $id>1}} style="display:none"{{/if}}>
	<tbody>
		<tr>
			<th width="150">颜色ID<span></span></th>
			<td><input type="text" name="info[id]" readonly="readonly" id="info[id]" value="{{$data.0.id}}" class="input" maxlength="8" /></td>
		</tr>
		<tr>
			<th width="150">所属产品ID<span></span></th>
			<td><input type="text" name="info[cid]" readonly="readonly" id="info[cid]" value="{{$data.0.cid}}" class="input" maxlength="8" /></td>
		</tr>
		<tr>
			<th width="150">产品颜色<span></span></th>
			<td><input type="text" name="info[color]" id="info[color]" class="input" value="{{$data.0.color}}" maxlength="8" /></td>
		</tr>
		<tr>
			<th width="150">颜色代表图<span></span></th>
			<td>
				<label><input type="text" name="info[thumb]" value="{{$data.0.thumb}}" id="tb_input26"  class=" input "  maxlength="255"  size="50"  style="width:260px" /></label>
				<label><input type="button" class="dialog" alt="__ROOT__/admin.php?m=fupload&a=fieldupload&fieldid=26&opener_id=tb_input26&height=250&width=500" title="从电脑上传图片" class="notips" id="upload_img_26" value="上传图片" /></label>
				<label><input type="button" class="dialog" alt="__ROOT__/admin.php?m=ffiles&a=images&fieldid=26&opener_id=tb_input26&height=450&width=700" title ="站内图片库"  class="notips" id="choose_img_26" value="站内选择" /></label>
			</td>
		</tr>
		<tr>
			<th width="150">颜色组图<span></span></th>
			<td>
				<label><input type="button" class="dialog" alt="__ROOT__/admin.php?m=fupload&a=fieldupload&fieldid=28&shower_id=images_box&multi=true&height=250&width=500" title="从电脑上传图片" class="notips" id="upload_img_28" value="上传图片" /></label>
				<div id="images_box" style="padding:10px">
					{{foreach from=$data.0.images item=v}}
						<div ondblclick="$(this).remove();" style="cursor: pointer; float: left;" title="双击删除此文件">
						<img width="150" height="150" src="__PUBLIC__/uploads/{{$v}}">
						<input type="hidden" name="info[images][]" value="{{$v}}">
						</div>
					{{/foreach}}	
				</div>
			</td>
		</tr>
	</tbody>
</table>
<table cellpadding="0" cellspacing="0">
	<tfoot>
		<tr>
			<th width="150">&nbsp;</th>
			<td><label class="btn"><input type="submit"
				name="submit" value="确定保存" class="submit" /></label></td>
		</tr>
	</tfoot>
</table>
</div>
</div>
</form>
{{include file="default/Public/footer.html"}}
